package 慕课网;
//public class Monkey {
//    String name;
//    String feature;
//    public Monkey(){
//        System.out.println("我是使用无参构造产生的猴子");
//        System.out.println("名称：长尾猴");
//        System.out.println("特征：尾巴长");
//    }
//    public Monkey(String name,String feature){
//        this();
//        System.out.println("================================");
//        System.out.println("我是使用带参构造产生的猴子");
//        this.name=name;
//        this.feature=feature;
//        System.out.println("名称："+this.name);
//        System.out.println("特征："+this.feature);
//    }
//}
public class Monkey {
    private String name;
    private double weight;
    private int age;
    public void setName(String name)
    {
        this.name=name;
    }
    public void setWeight(double weight)
    {

        this.weight=weight;
    }
    public void setAge(int age)
    {
        this.age=age;
    }
    public String getName()
    {
        return "我是一只名叫"+this.name+"的大马猴";
    }
    public double getWeight()
    {
        return this.weight;
    }
    public int getAge()
    {
        return this.age;
    }
}